package com.ruoyi.service;

import com.ruoyi.domain.AdvBroadcast;

import java.util.List;

/**
 * total_amount_subService接口
 *
 * @author ruoyi
 * @date 2024-05-13
 */
public interface IAdvBroadcastService
{
    /**
     * 查询total_amount_sub
     *
     * @param advBroadcastId total_amount_sub主键
     * @return total_amount_sub
     */
    public AdvBroadcast selectAdvBroadcastByAdvBroadcastId(Long advBroadcastId);

    /**
     * 查询total_amount_sub列表
     *
     * @param advBroadcast total_amount_sub
     * @return total_amount_sub集合
     */
    public List<AdvBroadcast> selectAdvBroadcastList(AdvBroadcast advBroadcast);

    /**
     * 新增total_amount_sub
     *
     * @param advBroadcast total_amount_sub
     * @return 结果
     */
    public int insertAdvBroadcast(AdvBroadcast advBroadcast);

    /**
     * 修改total_amount_sub
     *
     * @param advBroadcast total_amount_sub
     * @return 结果
     */
    public int updateAdvBroadcast(AdvBroadcast advBroadcast);

    /**
     * 批量删除total_amount_sub
     *
     * @param advBroadcastIds 需要删除的total_amount_sub主键集合
     * @return 结果
     */
    public int deleteAdvBroadcastByAdvBroadcastIds(Long[] advBroadcastIds);

    /**
     * 删除total_amount_sub信息
     *
     * @param advBroadcastId total_amount_sub主键
     * @return 结果
     */
    public int deleteAdvBroadcastByAdvBroadcastId(Long advBroadcastId);

    boolean startLive(Long advMembersId);

    boolean stopLive(Long advMembersId);

    List<AdvBroadcast> selectAdvBroadcastListApp(AdvBroadcast advBroadcast);

    List<AdvBroadcast> getBroadByDevicesno(String devicesno, String advMembersId);

    AdvBroadcast status(String advMembersId);
}
